package com.joysuch.wwyt.report.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.joysuch.wwyt.report.api.service.RiskPointAPIService;
import com.joysuch.wwyt.report.bean.ReportRiskPointSearchBean;
import com.joysuch.wwyt.report.bean.RiskPointListBean;

import com.joysuch.wwyt.report.mapper.ReportRiskPointMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class RiskPointAPIServiceImpl extends ServiceImpl<ReportRiskPointMapper, RiskPointListBean> implements RiskPointAPIService {

    @Autowired
    private ReportRiskPointMapper reportRiskPointMapper;


    @Override
    public  Page<RiskPointListBean> selectRiskPointPage(ReportRiskPointSearchBean searchBean) {
        Page<RiskPointListBean> page = reportRiskPointMapper.selectRiskPointPage(new Page<RiskPointListBean>(searchBean.getPageNo() , searchBean.getPageSize()),searchBean.getDepartId());
        return page;
    }
}